<?php

require_once('init.php');

checkAdminLogin();

function adminMenu() {

  echo('
    <li><span></span><a href="#">系统管理</a>
      <ul>
        <li><a href="start.php" rel="homepage">起 始 页</a></li>        
        <li><a href="action.php?view=resetpwd">修改密码</a></li>
        <li><a href="action.php?act=clearcaches">清理缓存</a></li>
        <li><a href="action.php?act=backup">数据备份</a></li>
      </ul>
    </li>
    
    <li><span></span><a href="#">DKP管理</a>
      <ul>
        <li><a href="action.php?view=report_autoparser">导入记录</a></li>
        <li><a href="action.php?view=dkplist">DKP列表</a></li>
        <li><a href="action.php?view=event_list">事件列表</a></li>
        <li><a href="action.php?view=item_list">物品列表</a></li>
        <li><a href="action.php?view=growing">分数历程</a></li>
      </ul>
    </li>
    
    <li><span></span><a href="#">角色管理</a>
      <ul>
        <li><a href="action.php?view=member_add">添加角色</a></li>
        <li><a href="action.php?view=member_list">角色列表</a></li>        
      </ul>
    </li>
    
    <li><span></span><a href="#">新闻管理</a>
      <ul>
        <li><a href="action.php?view=news_add">添加新闻</a></li>
        <li><a href="action.php?view=news_list">新闻列表</a></li>
      </ul>
    </li>
    
    <li><span></span><a href="#">基础管理</a>
      <ul>        
        <li><a href="action.php?view=dkptype">DKP类型</a></li>
        <li><a href="action.php?view=race">种族管理</a></li>
        <li><a href="action.php?view=class">职业管理</a></li>  
        <li><a href="action.php?view=rank">级别管理</a></li>        
        <li><a href="action.php?view=instance">副本管理</a></li>
        <li><a href="action.php?view=boss">BOSS管理</a></li>        
      </ul>
    </li>
    
  ');
}



?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
  <head>
    <title> FSDKP后台管理 </title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
    <link rel="stylesheet" type="text/css" href="jscss/global.css" />
    <script language="javascript" type="text/javascript" src="jscss/global.js"></script>
    <script language="javascript" type="text/javascript" src="jscss/jquery.js"></script>    
    <link rel="stylesheet" type="text/css" href="themes/default/style.css" />
    <!--[if IE 6]>
    <link rel="stylesheet" type="text/css" href="themes/default/styleIE6.css" />
    <![endif]-->
    <script language="javascript">
      $(document).ready(function(){
        initMenu();
        initHeight();
        
      });
      $(window).resize(function(){
        initHeight();
      });
    </script>
  </head>
  
  <body>
  
    <div id="header">
      <div class="nav">
        <a class="logo">DKP后台管理系统</a>
        <ul>
          <li><a href="login.php?act=logout">登出</a></li>
        </ul>        
      </div>
    </div>
    
    <div id="container">
    
      <div id="left" class="border">
        <div class="bigTitle menuborder">
          <span class="floatl">主菜单</span> <a href="javascript:toggleLeft();"><span class="expand"></span></a>
        </div>
        <ul id="menu">          
          <?php adminMenu(); ?>
        </ul>
      </div>
    
      <div id="middle" class="border">
        <a href="javascript:toggleLeft();"><span class="collapse"></span></a>
      </div>
    
      <div id="right" class="border">
        <div id="navtab" class="bigTitle menuborder">
          <ul>
            <li id="navTabName" class="homepage">起始页</li>
          </ul>
        </div>
        <div id="navAlert" class="menuborder"></div>        
        <div id="main">
          <iframe width="100%" id="rightFrame" name="rightFrame" height="0" frameborder="0" src="start.php"></iframe>
        </div>
      </div>
      
    </div>
    
    <div id="footer">
      FSDKP develop group. Best View: 1280*800
    </div>

  </body>
  
</html>
